package com.worldtolearn.offer.dao;

import java.io.Serializable;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import com.worldtolearn.offer.entity.Description;
@Repository
public class DescriptionDao extends HibernateDaoSupport implements IDescriptionDao, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Autowired
	public void init(SessionFactory factory) {
	    setSessionFactory(factory);
	}	
	
	@Override
	public void createDescription(Description description) {
		getHibernateTemplate().save(description);
	}

}
